package com.lianyi.push.init;

import android.app.Application;
import android.content.Context;

import com.lianyi.push.share.listener.TcpClientToSeiviceMessageListener;
import com.lianyi.push.share.listener.TcpSeiviceToClientMessageListener;
import com.lianyi.push.share.tcpclient.TcpClient;
import com.lianyi.push.share.tcpservice.TcpService;
import com.lianyi.push.share.udpclient.UdpClient;
import com.lianyi.push.share.udpservice.UdpService;

import io.netty.channel.ChannelHandlerContext;

/**
 * Created by leilei on 2018/8/17.
 */

public class PushIM {

    private static Context mContext;

    public static void init(Application application) {
        mContext = application.getApplicationContext();
        TcpClient.getInstance().init(application);
        TcpService.getInstance().init(application);
        UdpClient.getInstance().init(application);
        UdpService.getInstance().init(application);
    }

    public static Context getContext() {

        return mContext;
    }

}
